/**
 * 
 */
package com.shine.icis.hbean;

import java.io.Serializable;

import com.shine.icis.config.SysCodeDictLoader;


/**
 * A13全业务配置
 * @author zsy
 *
 */
public class BusinessConf implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1998411859294309098L;
	private int busiId;
	private String busiName;//业务名称
	private boolean enableFlag;//是否启用
	private String confType;//配置类型
	private String confValue;//配置值
	private String note;//说明
	public int getBusiId() {
		return busiId;
	}
	public void setBusiId(int busiId) {
		this.busiId = busiId;
	}
	public String getBusiName() {
		return busiName;
	}
	public void setBusiName(String busiName) {
		this.busiName = busiName;
	}
	public boolean isEnableFlag() {
		return enableFlag;
	}
	public void setEnableFlag(boolean enableFlag) {
		this.enableFlag = enableFlag;
	}
	public String getConfType() {
		return confType;
	}
	public void setConfType(String confType) {
		this.confType = confType;
	}
	public String getConfValue() {
		return confValue;
	}
	public void setConfValue(String confValue) {
		this.confValue = confValue;
	}
	public String getConfValueText() {
		return SysCodeDictLoader.getInstance().getBusinessConfText(confType, confValue);
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + busiId;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final BusinessConf other = (BusinessConf) obj;
		if (busiId != other.busiId)
			return false;
		return true;
	}
	
	
}

